import request from '@/utils/request'

// 查询人员设置列表
export function listPersonnel (query) {
  return request({
    url: '/platform/personnel/list',
    method: 'get',
    params: query
  })
}

// 查询人员设置详细
export function getPersonnel (personnelId) {
  return request({
    url: '/platform/personnel/' + personnelId,
    method: 'get'
  })
}

// 新增人员设置
export function addPersonnel (data) {
  return request({
    url: '/platform/personnel',
    method: 'post',
    data: data
  })
}

// 修改人员设置
export function updatePersonnel (data) {
  return request({
    url: '/platform/personnel',
    method: 'put',
    data: data
  })
}

// 删除人员设置
export function delPersonnel (personnelId) {
  return request({
    url: '/platform/personnel/' + personnelId,
    method: 'delete'
  })
}
